<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<%-- 字段 --%>
<%@ attribute name="name" required="true" rtexprvalue="true"%>
<%-- 是否为多图片上传 --%>
<%@ attribute name="multi" required="true" rtexprvalue="true"%>
<%-- 是否需要剪切 --%>
<%@ attribute name="clip" required="true" rtexprvalue="true"%>
<%-- 是否必传 --%>
<%@ attribute name="required" required="true" rtexprvalue="true"%>
<%-- 图片剪切的宽度 --%>
<%@ attribute name="width" rtexprvalue="true"%>
<%-- 图片剪切的高度 --%>
<%@ attribute name="height" rtexprvalue="true"%>
<%-- 加查询出来显示的图片对应的实体ID --%>
<%@ attribute name="id" rtexprvalue="true"%>

<a href="javascript:;" class="btn btn-app btn-purple btn-sm fileUpload" 
	upload-param='{"name":"${name}","multi":${multi},"clip":${clip},"required":${required },"width":${empty width?0:width},"height":${empty height?0:height}}'>
	<i class="ace-icon fa fa-cloud-upload bigger-200"></i>
	上传
</a>
<span class="fileQueue">
</span>